if __name__ == '__main__':
    names = ['Tom', 'Jerry', 'Cane', 'Robert']
    names = sorted(names)
    for index, name in enumerate(names):
        print(f"{index}. {name}")
